<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>

        <div class="layui-tab layui-tab-brief">

            <ul class="layui-tab-title" style="margin-top: 40px;">
                <li class="layui-this">商品参数</li>
                <li>商品属性</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table" lay-size="sm">
                        <thead>
                        <tr>
                            <th>参数名称</th>
                            <th>参数类型</th>
                            <th>参数选项</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="params_view">
                        <tr data-id="0">
                            <td>
                                <input type="hidden" name="params_id[0]" value="">
                                <input type="text" name="params_name[0]" value="" placeholder="" autocomplete="off"
                                       class="layui-input seller-inline-1">
                            </td>
                            <td>
                                <select name="params_type[0]" id="type">
                                    <option value="text">文本框</option>
                                    <option value="radio">单选框</option>
                                    <option value="checkbox">复选框</option>
                                </select>
                            </td>
                            <td>
                                <input type="text" name="params_value[0]" value="" placeholder="空格分隔"
                                       autocomplete="off" class="layui-input seller-inline-1">
                            </td>
                            <td style="width: 110px;">
                                <a class="layui-btn layui-btn-xs select-params-class">
                                    选择
                                </a>
                                <a class="layui-btn layui-btn-xs add-params-class">
                                    添加
                                </a>
                            </td>
                        </tr>
                        </tbody>
                    </table>

                </div>
                <div class="layui-tab-item">

                    <div class="layui-tab-item layui-show">
                        <table class="layui-table" lay-size="sm">
                            <thead>
                            <tr>
                                <th>属性名称</th>
                                <th>排序</th>
                                <th>属性值</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody id="type_view">
                            <tr data-id="0">
                                <td>
                                    <input type="hidden" name="type_id[0]" value="">
                                    <input type="text" name="type_name[0]" value="" placeholder=""
                                           autocomplete="off" class="layui-input seller-inline-1">
                                </td>
                                <td>
                                    <input type="text" name="type_sort[0]" value="100" placeholder=""
                                           autocomplete="off" class="layui-input seller-inline-1">
                                </td>
                                <td>
                                    <input type="text" name="type_value[0]" value="" placeholder="空格分隔"
                                           autocomplete="off" class="layui-input seller-inline-1">
                                </td>
                                <td>
                                    <a class="layui-btn layui-btn-xs select-type-class">
                                        选择
                                    </a>
                                    <a class="layui-btn layui-btn-xs add-type-class">
                                        添加
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<!--layui laytpl-->
<!--<script id="params_tpl" type="text/html">
    <tr data-id="{{ d.id }}">
        <td>
            <input type="hidden" name="params_id[{{ d.id }}]" value="">

            <input type="text" name="params_name[{{ d.id }}]" required value="" lay-verify="required"
                   placeholder="" autocomplete="off" class="layui-input seller-inline-1">
        </td>
        <td>
            <select name="params_type[{{ d.id }}]">
                <option value="text">文本框</option>
                <option value="radio">单选框</option>
                <option value="checkbox">复选框</option>
            </select>
        </td>
        <td>
            <input type="text" name="params_value[{{ d.id }}]" value=""
                   placeholder="空格分隔" autocomplete="off"
                   class="layui-input seller-inline-1">
        </td>
        <td>
            <a class="layui-btn layui-btn-xs select-params-class">
                选择
            </a>
            <a class="layui-btn layui-btn-danger layui-btn-xs del-params-class">
                删除
            </a>
        </td>
    </tr>
</script>


<script id="type_l_tpl" type="text/html">
    <tr data-id="{{ d.id }}">
        <td>
            <input type="hidden" name="type_id[{{ d.id }}]" value="">

            <input type="text" name="type_name[{{ d.id }}]" required value="" lay-verify="required"
                   placeholder="" autocomplete="off" class="layui-input seller-inline-1">
        </td>
        <td>
            <input type="text" name="type_sort[{{ d.id }}]" required value="100" lay-verify="required"
                   placeholder="" autocomplete="off" class="layui-input seller-inline-1">
        </td>
        <td>
            <input type="text" name="type_value[{{ d.id }}]" required value=""
                   lay-verify="required" placeholder="空格分隔" autocomplete="off"
                   class="layui-input seller-inline-1">
        </td>
        <td>
            <a class="layui-btn layui-btn-xs select-type-class">
                选择
            </a>
            <a class="layui-btn layui-btn-danger layui-btn-xs del-type-class">
                删除
            </a>
        </td>
    </tr>
</script>-->

